﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BlockMain_Class
{
    public class UserRecordJson
    {
        /// <summary>
        /// 送检机构
        /// </summary>
        public string Mechanism { get; set; }
        /// <summary>
        /// 检测类型
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 文件地址
        /// </summary>
        public string FilePath { get; set; }

        public string TestMechanism { get; set; }

        public string NowPeer { get; set; }

        public string AddTime { get; set; }
        public List<UserRecordJsonItem> ProjecItem { get; set; }
    }

    public class UserRecordJsonItem
    {
        public string Name { get; set; }
        public bool IsQualified { get; set; }
        public string SuceessTime { get; set; }
    }

    public class info
    {
        public string rid { get; set; }
        public string NowPeer { get; set; }
        public string TestMechanism { get; set; }
        public int Type { get; set; }
        public string AddTime { get; set; }
        public string Mechanism { get; set; }
        public string FilePath { get; set; }

        public List<UserRecordJsonItem> ProjecItem { get; set; }
    }


    public class PeerSelect
    {
        public string Msg { get; set; }
        public string name { get; set; }
        public int Id { get; set; }
        public string Ip { get; set; }
        public int state { get; set; }

        public string addtime { get; set; }
        public string detail { get; set; }

        public List<BlockItem> Blocks { get; set; }
    }
    public class BlockItem
    {
        public int Heigth { get; set; }
        public string Hash { get; set; }
        public string PrevHash { get; set; }
        public string addtime { get; set; }
    }


    public class SelectBlock
    {
        //基础信息
        public string Msg { get; set; }
        public string Hash { get; set; }

        public string TypeName { get; set; }

        public string OrderAddTime { get; set; }

        public string Mechanism { get; set; }

        public string TestMechanism { get; set; }

        //区块信息

        public int Heigth { get; set; }
        public string AddTime { get; set; }
        public string PrevHash { get; set; }
        public string FilePath { get; set; }

        //共识记录
        public List<PeerState> PeerState { get; set; }


        public List<UserRecordJsonItem> ProjecItem { get; set; }
        public string NowPeer { get; set; }
        public string NowPeerUrl { get; set; }
    }


    public class PeerState
    {
        public string name { get; set; }
        public string time { get; set; }

        public int state { get; set; }
    }
    /// <summary>
    /// 客户列表
    /// </summary>
    public class CItem
    {
        public string Name { get; set; }
        public string addtime { get; set; }
        public string Hash { get; set; }
    }


}
